import subprocess

args = ["echo", "Hello World"]
return_code = subprocess.call(args)
print(f"Return Code: {return_code}")

print(' *\t*\t*')
print('hello\nworld')

try:
    num = int(input('请输入一个非零数字作为除数'))
    result = 10 / num
except ZeroDivisionError as e:
    print('错误:', str(e))
else:
    print(result)
finally:
    print("操作已完成")

import zipfile

# 创建一个新的 ZIP 文件并将文件添加进去
with zipfile.ZipFile('./output/new_archive.zip', mode='w') as archive:
    archive.write('source_directory/file_to_add.jpg')

# 解压整个 ZIP 文件到给定目录中
with zipfile.ZipFile('./output/new_archive.zip', 'r') as zip_ref:
    zip_ref.extractall('destination_folder/')